﻿using _2112A_2_MES._chubowen;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace _2112A_2_MES.ChuBoWens
{
    public interface ProductionRejectionRepository : IApplicationService
    {
        /// <summary>
        /// 获取生产退料表
        /// </summary>
        /// <param name="rtcode"></param>
        /// <param name="workordercode"></param>
        /// <param name="warehousename"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<InterSelect<object>> GetProductionRejectionList(string? rtcode, string? workordercode, string? warehousename, int pageIndex, int pageSize);

        /// <summary>
        /// 新增生产退料表
        /// </summary>
        /// <param name="mditem"></param>
        /// <returns></returns>
        Task<int> AddProductionRejection(ProductionRejection productionRejection);

        /// <summary>
        /// 删除生产退料表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteProductionRejection(int id);

        /// <summary>
        /// 获取物料产品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ProductionRejection> GetProductionRejection(int id);

        /// <summary>
        /// 修改物料产品
        /// </summary>
        /// <param name="mditem"></param>
        /// <returns></returns>
        Task<int> UpdateProductionRejection(ProductionRejectionDTO productionRejectionDTO);
    }
}
